//
//  BaseViewController.h
//  Utils
//
//  Created by enghou on 2018/3/19.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Protocols.h"
@class ChooseAddressViewController;
@interface BaseViewController : UIViewController<TotalProtocol>

@property(nonatomic,assign)id<TotalProtocol>theDelete;

-(void)commonFailBlockWithModel:(BaseModel *)model;

-(void)beginLoading;

-(void)endLoading;

-(void)alertSome:(NSString *)msg;

-(void)alertSome:(NSString *)msg sureAction:(void(^)(void))act;

-(void)alertSome:(NSString *)msg sureAction:(void (^)(void))act cancelAct:(void(^)(void))cancel;

-(void)alertSome:(NSString *)msg sureTitle:(NSString *)sureTitle sureAction:(void(^)(void))sureAct cancelTitle:(NSString *)cancelTitle cancelAct:(void(^)(void))cancel;

-(void)push:(UIViewController *)vc;

-(void)chooseOrg;

-(void)pop;

-(void)defaultBackButton;
@end
